package com.stroke.tools.animation;

import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import javax.swing.*;
import java.io.File;

/**
 * Author: Igor Bubelov
 * Date: 3/8/11 3:21 PM
 */
public class Animator {
    public static void main(String[] args) {
        PropertyConfigurator.configure("config" + File.separator + "log.properties");

        try {
            UIManager.setLookAndFeel(new NimbusLookAndFeel());
        } catch (Exception ex) {
            Logger.getLogger(Animator.class).error("Failed to initialize nimbus look and feel");
        }

        JFrame frame = new MainScreen();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }
}
